#include<iostream>
using namespace std;
int main() {
	int age1 = 0;
	int age2 = 0;
	int age3 = 0;
	cout << "请输入小花的年龄" << endl;
	cin >> age1;
	cout << "请输入小刚的年龄" << endl;
	cin >> age2;
	cout << "请输入小美的年龄" << endl;
	cin >> age3;
	if (age1 > age2) {
		if (age1 > age3) {

			cout << "小花的年龄最大" << endl;
			cout << "小花比小刚大" << age1 - age2 << "岁。" << endl;
			cout << "小花比小美大" << age1 - age3 << "岁。" << endl;
			cout << "小花今年" << age1 << "岁。" << endl;
		}
		else {

			cout << "小美的年龄最大" << endl;
			cout << "小美比小刚大" << age3 - age2 << "岁。" << endl;
			cout << "小美比小花大" << age3 - age1 << "岁。" << endl;
			cout << "小美今年" << age3 << "岁。" << endl;
		}
	}
	else if ( age2 > age3 )
	{
		cout << "小刚的年龄最大" << endl;
		cout << "小刚比小花大" << age2 - age1 << "岁。" << endl;
		cout << "小刚比小美大" << age2 - age3 << "岁。" << endl;
		cout << "小刚今年" << age2 << "岁。" << endl;
	}
	else {
		cout << "小美的年龄最大" << endl;
		cout << "小美比小刚大" << age3 - age2 << "岁。" << endl;
		cout << "小美比小花大" << age3 - age1 << "岁。" << endl;
		cout << "小美今年" << age3 << "岁。" << endl;
	}
	system("pause");
	return 0;
}